#!/usr/bin/env bash

# Deploy the spiders to all of the available servers

echo -n "Starting spider on [qhcert]: "
ssh atropos@cert screen ';' cd weibo-research/src/python/spider ';' touch cert ';'
echo  "Done"
echo -n "Starting spider on [gdcert]: "
ssh atropos@cert ssh atropos@gdcert ';' \
    screen ';' cd weibo-research/src/python/spider ';' touch cert ';' 
echo "Done"

echo -n "Starting spider on [centervm]: "
ssh -p 2001 ubuntu@centervm screen ';' touch centervm
echo "Done"
echo -n "Starting spider on [centervm]: "
ssh -p 2003 ubuntu@centervm screen ';' touch centervm
echo "Done"

